# coding:utf-8

import sys
from PySide6.QtWidgets import QApplication, QWidget
from formHello import Ui_Form


class QmyWidget(QWidget):
    def __init__(self, parent=None):
        super().__init__(parent)
        self._ui = Ui_Form()
        self._ui.setupUi(self)

    def setButtonText(self, text):
        self._ui.pushButton.setText(text)


if __name__ == "__main__":
    app = QApplication(sys.argv)
    w = QmyWidget()
    w.setButtonText("Hello PyQt5")
    w.show()
    sys.exit(app.exec())